package gov.pbc.nn.uflo.command;

import gov.pbc.nn.core.ICallback;

import com.bstek.uflo.command.Command;
import com.bstek.uflo.env.Context;

public class UfloCommonCommand<R> implements Command<R> {

	private ICallback<Context, R> callback;

	public <T> UfloCommonCommand(ICallback<Context, R> callback) {
		this.callback = callback;
	}

	@Override
	public R execute(Context context) {
		return (R) this.callback.execute(context);
	}

}
